#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 1
#endif

#include<iostream>
#include<vector>
#include<set>
#include<algorithm>
#include<string>
#include<cmath>
using namespace std;
/*
http://ybt.ssoier.cn:8088/problem_show.php?pid=1245
*/
set<int>st;

void ac() {
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		int x;
		cin >> x;
		st.insert(x);
	}
	for (auto i : st)
		cout << i << ' ';
}

int main() {
	ac();
	return 0;
}